import { reactive } from "vue";

const data = {
  statusList: [
    { label: "直播未开始", value: 1, color: "alert" },
    { label: "直播中", value: 2, color: "normal" },
    { label: "直播已结束", value: 3, color: "gray" },

    /* { label: "直播未开始", value: 1, color: "alert" },
    { label: "直播中", value: 2, color: "normal" },
    { label: "投票未开始", value: 3, color: "normal" },
    { label: "投票中", value: 4, color: "normal" },
    { label: "投票已结束", value: 5, color: "gray" },
    { label: "直播已结束", value: 6, color: "gray" }, */
  ],
  worksStatus: [
    // 1.已通过 2.未通过 3.未审核(默认) 4.已撤销
    { label: "全部", value: 0, color: "normal" },
    { label: "已通过", value: 1, color: "normal" },
    { label: "未通过", value: 2, color: "alert" },
    { label: "未审核", value: 3, color: "normal" },
    { label: "已撤销", value: 4, color: "gray" },
  ],
};
const _data = JSON.parse(JSON.stringify(data));
const state = reactive(_data) as typeof data;

async function photoShare(imgUrl: string, desc = "") {
  /* const link = sessionStorage.getItem("photoLink");
  const title = sessionStorage.getItem("photoTitle");
  const options = { title: title, link, desc, imgUrl };
  await checkStatus();
  setTimeout(() => {
    wx.showMenuItems({
      menuList: ["menuItem:share:appMessage", "menuItem:share:timeline"],
    });
    wx.updateAppMessageShareData(options);
    wx.updateTimelineShareData(options);
  }, 1000); */
}

export { state as photoWallState, photoShare };
